package Work2;

class Phone implements IFun {
    private String name;
    private String model;
    private String system;
    private int price;
    private int memory;

    public Phone(String name, String model, String system, int price, int memory) {
        this.name = name;
        this.model = model;
        this.system = system;
        this.price = price;
        this.memory = memory;
    }

    @Override
    public void call(String people) {
        System.out.println(people + "的号");
    }

    @Override
    public void game() {
        System.out.println("玩扫雷游戏");
    }

    @Override
    public void song() {
        System.out.println("我的中国心");
    }
}

public class Work2 {
    public static void main(String[] args) {
        Phone phone1 = new Phone("苹果", "iphoneX", "ios", 8888, 16);
        phone1.call("爷爷");
        phone1.game();
        phone1.song();
        Phone phone2 = new Phone("华为", "华为荣耀20", "Android", 6666, 16);
        phone2.call("奶奶");
    }
}
